const Router = require('koa-router')
const user = require('./user')
const book = require('./book');
const mock = require('./mock')
const home = require('./home')
const img = require('./img')
const router = new Router()

router.use('/', home.routes(), home.allowedMethods())
router.use('/api', user.routes(), user.allowedMethods())
router.use('/api', book.routes(), book.allowedMethods())
router.use('/api', img.routes(), img.allowedMethods())
router.use('/mock', mock.routes(), mock.allowedMethods())
// router.use('/home', home.routes())

module.exports = router